package com.develop.archives.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.develop.archives.dao.CommunityDao;
import com.develop.archives.domain.CommunityDO;
import com.develop.archives.service.CommunityService;



@Service
public class CommunityServiceImpl implements CommunityService {
	@Autowired
	private CommunityDao communityDao;
	
	@Override
	public CommunityDO get(String communityid){
		return communityDao.get(communityid);
	}
	
	@Override
	public List<CommunityDO> list(Map<String, Object> map){
		return communityDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return communityDao.count(map);
	}
	
	@Override
	public int save(CommunityDO community){
		return communityDao.save(community);
	}
	
	@Override
	public int update(CommunityDO community){
		return communityDao.update(community);
	}
	
	@Override
	public int remove(String communityid){
		return communityDao.remove(communityid);
	}
	
	@Override
	public int batchRemove(String[] communityids){
		return communityDao.batchRemove(communityids);
	}
	
}
